//
//  Images.m
//  MortgageHelper
//
//  Created by lzy on 17/8/17.
//  Copyright © 2017年 zhangxiang. All rights reserved.
//

#import "Images.h"

@implementation Images
- (void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:self.url forKey:@"url"];
    [aCoder encodeObject:self.locale forKey:@"locale"];    
}


- (id)initWithCoder:(NSCoder *)aDecoder{
    
    if (self = [super init]) {
        
        self.url = [aDecoder decodeObjectForKey:@"url"];
        self.locale = [aDecoder decodeObjectForKey:@"locale"];
        
    }
    return self;
}

- (id)copyWithZone:(NSZone *)zone{
    
    Images *copy = [[[self class] allocWithZone:zone] init];
    copy.url = self.url;
    copy.locale = self.locale;
    return copy;
}

@end
